namespace :bilibiliranking do
  desc "bilibili ranking example over"
  task :over => :environment do
    doc = BiliRankingMaker.create({:path => "#{BILI_PRO_PATH}#{ENV['pa']}\\"}) do |vvm|
      vvm.play_bgm("bilibili.mp3") do
        vvm.pics "over", 1..2, :length => 7
      end
    end
    doc.write File.open("#{BILI_PRO_PATH}#{ENV['pa']}\\" + "xml.xml", 'w')
  end
end